package cn.neusoft.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author hxj
 * @since 2024-12-11
 */
@TableName("t_address")
public class Address implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "addressId", type = IdType.AUTO)
    private Integer addressId;

    /**
     * 收货人
     */
    private String contactName;

    /**
     * 收货人性别
     */
    private Integer contactGender;

    /**
     * 联系电话
     */
    private String contactTel;

    /**
     * 送货地址
     */
    private String address;

    /**
     * 所属用户编号
     */
    private Integer userId;

    public Integer getAddressId() {
        return addressId;
    }

    public void setAddressId(Integer addressId) {
        this.addressId = addressId;
    }
    public String getContactName() {
        return contactName;
    }

    public void setContactName(String contactName) {
        this.contactName = contactName;
    }
    public Integer getContactGender() {
        return contactGender;
    }

    public void setContactGender(Integer contactGender) {
        this.contactGender = contactGender;
    }
    public String getContactTel() {
        return contactTel;
    }

    public void setContactTel(String contactTel) {
        this.contactTel = contactTel;
    }
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "Address{" +
            "addressId=" + addressId +
            ", contactName=" + contactName +
            ", contactGender=" + contactGender +
            ", contactTel=" + contactTel +
            ", address=" + address +
            ", userId=" + userId +
        "}";
    }
}
